package com.fstart.sys.service.impl;

import com.fstart.sys.entity.Diary;
import com.fstart.sys.mapper.DiaryMapper;
import com.fstart.sys.service.IDiaryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Xibing
 * @since 2023-05-04
 */
@Service
public class DiaryServiceImpl extends ServiceImpl<DiaryMapper, Diary> implements IDiaryService {

    // 更具日期查询日记
    @Override
    public Diary getDiaryByDate(Diary diary) {
        Diary diaryByDate = this.baseMapper.getDiaryByDate(diary);

        return diaryByDate;
    }
}
